import React, { memo } from 'react'

function Count(props) {
  console.log('count run');
  return (
    <div>
      <h2 style={{color: 'white'}}>{props.count}</h2>
      <button onClick={() => {
        props.incre();
      }}>新增</button>
    </div>
  )
}

//缓存组件  memo  memory
export default memo(Count);
